#!/usr/bin/env php
<?php declare (ticks = 1);
	function Down ($Sig) {
		var_dump ("killing on $Sig");
		die ();
	}
	pcntl_signal (SIGINT, 'Down');





	// TODO:
	// clean up the code in general, make it more generic
	// extension management
	// all function shall return something meaningfull just in case

	// WTF:
	// how does it delete its pidfile after the priviledge drop? (not relevant now but still interesting)

	// $DB = new PDO ('sqlite:/home/stronny/test.db');
	// var_dump ($DB);

	//setlocale (LC_ALL, '');
	//var_dump (setlocale (LC_ALL, 0));
	// Sid: string(11) "ru_RU.UTF-8"
	// FreeBSD 7.2: string(11) "ru_RU.UTF-8"
	// some MAC: string(61) "ru_RU.UTF-8/ru_RU.UTF-8/ru_RU.UTF-8/ru_RU.UTF-8/ru_RU.UTF-8/C"
?>